<link href="/assets/home/css/index.css" rel="stylesheet" />
<!-- 轮播 -->
<div class="mui-content">
    <div class="swiper mySwiper">
        <div class="swiper-wrapper">
            {foreach $recommendlist as $item}
            <div class="swiper-slide">
                <a href="{:url('home/subject/info', ['subid' => $item['id']])}">
                    <img src="{$item['thumbs']}">
                    <p class="mui-slider-title">{$item['title']}</p>
                </a>
            </div>
            {/foreach}
        </div>
        <div class="swiper-pagination" style="text-align: right;"></div>
    </div>
</div>

<!-- 搜索 -->
<div class="mui-input-row mui-search">
    <a href="{:url('home/subject/search')}">
        <input type="search" class="mui-input-clear" placeholder="搜索">
    </a>
</div>

{foreach $catelist as $item}
<div class="mui-content">
    <h5 class="title">{$item['name']}</h5>
    <ul class="mui-table-view mui-grid-view">
        {foreach $item['subject'] as $items}
        <li class="mui-table-view-cell mui-media mui-col-xs-6">
            <a href="{:url('home/subject/info', ['subid' => $items['id']])}">
                <div class="imgs">
                    <img class="mui-media-object" src="{$items['thumbs']}">
                </div>
                <div class="mui-media-body">{$items['title']}</div>
            </a>
        </li>
        {/foreach}
    </ul>
</div>
{/foreach}

<div class="more">没有更多了..</div>

<!-- 引入底部 -->
{include file='common/footer' /}

<!-- 引入JS -->
{include file='common/script' /}